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:
below is snap from CCM:
Getting error while trying to enable CPU/Memory via OID
-
pratikmehta003
- Posts: 105
- Joined: Thu Apr 09, 2020 7:35 am
Getting error while trying to enable CPU/Memory via OID
You do not have the required permissions to view the files attached to this post.
Re: Getting error while trying to enable CPU/Memory via OID
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):
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.
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$'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
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?
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
I used the Macro but still no help.
See below the defined macro in the config file: and the output below after trying:
See below the defined macro in the config file: and the output below after trying:
You do not have the required permissions to view the files attached to this post.
Re: Getting error while trying to enable CPU/Memory via OID
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
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
Its working now.. Thanks for the help...
I have one more query, if u fine then can i ask here?
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
Great!pratikmehta003 wrote:Its working now.. Thanks for the help...
I have one more query, if u fine then can i ask here?
It would be better to create a new thread for another question/issue
Locking thread