Getting error while trying to enable CPU/Memory via OID

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Getting error while trying to enable CPU/Memory via OID

Post by pratikmehta003 »

HI There,

We have some Comware and Aruba switches to be added and Nagios is not picking CPU/Memory by default, we need to define the OID..
So i tested from CLI for the OID and i can see the output like this:
SNMPv2-SMI::enterprises.25506.2.6.1.1.1.1.6.14 = INTEGER: 8

Now i took the SNMP wizard and defined the OID and everything.. but the status is showing like below:
error1.PNG
below is snap from CCM:
Error2.PNG
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Getting error while trying to enable CPU/Memory via OID

Post by ssax »

This is likely related to having a ! in your passwords which is used on the backend to separate the arguments.

You can setup a user macro and use that in the command like this (leave the single quotes around it):

Code: Select all

--authpasswd='$USERn$' --privpasswd='$USERn$'
https://assets.nagios.com/downloads/nag ... Macros.pdf

If you need help, please PM me a copy of your profile.zip, you can download it from Admin > System Profile by clicking the Download Profile button.
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting error while trying to enable CPU/Memory via OID

Post by pratikmehta003 »

Hi,

Yes ! character is there in the pwd.. but is there no way to bypass it? We had this instance in other customers also but it worked when everything was kept in 1 line...

i will check the macro as well.. and we come across this randomly with some other commands as well.. Is there any format or doc that shoyld be followed?
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting error while trying to enable CPU/Memory via OID

Post by pratikmehta003 »

I used the Macro but still no help.

See below the defined macro in the config file:
macro.PNG
and the output below after trying:
error.PNG
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Getting error while trying to enable CPU/Memory via OID

Post by ssax »

Try putting single quotes around both of the user macros then try again. Also, try applying configuration and forcing a check to see if it works from the backend after.

Code: Select all

'$USERn$'
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting error while trying to enable CPU/Memory via OID

Post by pratikmehta003 »

You mean in config file or in CCM for single quotes?
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting error while trying to enable CPU/Memory via OID

Post by pratikmehta003 »

Its working now.. Thanks for the help...

I have one more query, if u fine then can i ask here?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Getting error while trying to enable CPU/Memory via OID

Post by scottwilkerson »

pratikmehta003 wrote:Its working now.. Thanks for the help...

I have one more query, if u fine then can i ask here?
Great!

It would be better to create a new thread for another question/issue

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked